var alterTip = false;
$(document).ready(function (e) {
    $(".tst1").on("click", function () {
        setTimeout(function () {
            alterTip = true
        }, 1000);

        setTimeout(function () {
            $.toast({
                heading: '你提交了申请',
                text: '你已成功申请纳税信用贷款',
                position: 'top-right',
                loaderBg: '#ff6849',
                icon: 'info',
                hideAfter: 1000,
                stack: 6
            });
        }, 1100);
        if (alterTip) {

        }
        alterTip = false

    });

    $(".tst2").on("click", function () {
        $.toast({
            heading: '你取消了申请',
            text: '如若不了解，可以联系客户  400-123456',
            position: 'top-right',
            loaderBg: '#ff6849',
            icon: 'warning',
            hideAfter: 6000,
            stack: 6
        });

    });
    $(".tst3").on("click", function () {
        $.toast({
            heading: '你提交了申请',
            text: '你已申请了纳税信用贷款',
            position: 'top-right',
            loaderBg: '#ff6849',
            icon: 'success',
            hideAfter: 3500,
            stack: 6
        });

    });

    $(".tst4").on("click", function () {
        $.toast({
            heading: '你提交了申请',
            text: '你已申请了纳税信用贷款',
            position: 'top-right',
            loaderBg: '#ff6849',
            icon: 'error',
            hideAfter: 3500

        });

    });


});